package com.gc.server.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 申请实体
 * 表名 bus_apply
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Apr 08 09:33:59 CST 2020
 */
@Setter
@Getter
public class BusApplyEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //当事人ID
    private Long userId;
        //开始时间
    private Date startDate;
        //起止时间
    Date[] startDates;
        //结束时间
    private Date endDate;
        //起止时间
    Date[] endDates;
        //ENUM-状态:"WAIT-待审核","PASS-通过","REFUSE-拒绝
    private Integer status;
        //ENUM-类型:"LEAVE-请假","TRIP-出差"
    private Integer type;
        //审核人ID
    private Long adminId;
        //审核人名字
    private String adminName;
        //申请日期
    private Date time;
        //起止时间
    Date[] times;
        //详细原因
    private String info;
        //拒绝理由
    private String remark;

    private BigDecimal hours;

    //请假类型
    private Integer leaveType;

    private String startPlace;

    private String midPlace;

    private String endPlace;

    private String tripWay;

    private String tripType;

    private Long aid;

    public BusApplyEntity(){

    }

    //请假
    public BusApplyEntity(Long userId, Date startDate, Date endDate, Integer status, Integer type, Date time, String info, BigDecimal hours,Integer leaveType) {
        this.userId = userId;
        this.startDate = startDate;
        this.endDate = endDate;
        this.status = status;
        this.type = type;
        this.time = time;
        this.info = info;
        this.hours = hours;
        this.leaveType = leaveType;
    }

    public BusApplyEntity(Long userId, Date startDate, Date endDate, Integer status, Integer type, Date time, BigDecimal hours, String startPlace, String endPlace, String tripWay, String tripType,String info,Long aid) {
        this.userId = userId;
        this.startDate = startDate;
        this.endDate = endDate;
        this.status = status;
        this.type = type;
        this.time = time;
        this.hours = hours;
        this.startPlace = startPlace;
        this.endPlace = endPlace;
        this.tripWay = tripWay;
        this.tripType = tripType;
        this.info = info;
        this.aid = aid;
    }
}
